<?php
    include_once("config.php");
    
    $uid = $_GET['uid'];/*
    $item = $_GET['item'];
    $estado = $_GET['estado'];*/
    
    $size = (int)$_GET['size'];
    
    
    for($i=0; $i<$size; $i++){
        
        $sql = sprintf("update user_checklist set estado=%s where uid='%s' and id=%s", $_GET[$i + 1], 
                    $uid, $i + 1);
       
        $result = mysql_query($sql);
        
    }
    
    
    /*$sql = sprintf("update user_checklist set estado=%s where uid='%s' and id=%s", $estado, 
                    $uid, $item);
       
    $result = mysql_query($sql);*/
    
    if($result) echo "OK";
    else "BAD";

?>